package org.raymond.icloud.apis.admin.service;

import org.raymond.icloud.apis.admin.vo.entity.UserRoleVO;
import org.raymond.icloud.common.core.bean.PageBean;
import org.raymond.icloud.common.core.config.FeignConfiguration;
import org.raymond.icloud.common.core.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
@FeignClient(name="i-cloud-client", contextId="admin-role-permission",
        url="${icloud.services.ip}:${icloud.services.port}", path="icloud",
        configuration= FeignConfiguration.class
)
@RequestMapping("/admin/role-permission")
public interface ITRolePermissionServiceApi {
    @PostMapping("/create")
    Result<UserRoleVO> create(@RequestBody UserRoleVO vo);

    @PostMapping("/delete")
    Result<Boolean> delete(@RequestBody UserRoleVO vo);
}
